import pytest, time
from selenium import webdriver
from yk.Page.Page import Page
from yk.Page.Page1 import Page1


@pytest.fixture()
def driver():
    driver = webdriver.Edge()
    yield driver
    driver.quit()


def test_youxiang_01(driver):
    driver.get('https://mail.163.com/')
    po = Page(driver)
    po.jinru('//*[@id="x-URS-iframe1760319885570.4688"]')
    po.text_01()


def test_youxiang_02(driver):
    driver.get('https://mail.163.com/')
    time.sleep(3)
    po1 = Page1(driver)
    po1.text_02()




